package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 处置协议
 */
public class AgreementInfo implements Parcelable {
    public AgreementInfo() {
    }

    // 图片
    public AgreementInfo(String agreementImg, String agreementImgScale, String agreementOriginal, String agreementStart, String agreementEnd) {
        this.agreementImg = agreementImg;
        this.agreementImgScale = agreementImgScale;
        this.agreementOriginal = agreementOriginal;
        this.agreementStart = agreementStart;
        this.agreementEnd = agreementEnd;
    }

    // 文件
    public AgreementInfo(String agreementUrl, String agreementOriginal, String agreementStart, String agreementEnd) {
        this.agreementUrl = agreementUrl;
        this.agreementOriginal = agreementOriginal;
        this.agreementStart = agreementStart;
        this.agreementEnd = agreementEnd;
    }
    // --------------------------上传图片(支持多组文件app改)--------------------------------
    // 处置协议图片/文件
    private String disposalAgreement;
    // 处置协议图片
    private String disposalAgreementScale;
    // 原文件名称
    private String disposalAgreementOriginal;

    // --------------------------申请白名单--------------------------------
    // 处置协议-文件路径
    private String agreementUrl;

    // 处置协议-图片路径-请求数据
    private String agreementImg;
    private String agreementImgScale;

    // 处置协议开始日期
    private String agreementStart;
    // 处置协议结束日期
    private String agreementEnd;
    // 原文件名称
    private String agreementOriginal;

    // --------------------------冶炼厂详情--------------------------------
    // 处置协议-图片路径-响应数据
    private String agreementImgUrl;
    private String agreementImgUrlScale;
    // 处置协议开始日期
    private String agreementImgStart;
    // 处置协议结束日期
    private String agreementImgEnd;

    // 处置协议-图片路径-响应数据 和“申请白名单”相同。

    public String getDisposalAgreement() {
        return disposalAgreement;
    }

    public void setDisposalAgreement(String disposalAgreement) {
        this.disposalAgreement = disposalAgreement;
    }

    public String getDisposalAgreementScale() {
        return disposalAgreementScale;
    }

    public void setDisposalAgreementScale(String disposalAgreementScale) {
        this.disposalAgreementScale = disposalAgreementScale;
    }

    public String getDisposalAgreementOriginal() {
        return disposalAgreementOriginal;
    }

    public void setDisposalAgreementOriginal(String disposalAgreementOriginal) {
        this.disposalAgreementOriginal = disposalAgreementOriginal;
    }

    public String getAgreementUrl() {
        return agreementUrl;
    }

    public void setAgreementUrl(String agreementUrl) {
        this.agreementUrl = agreementUrl;
    }

    public String getAgreementStart() {
        return agreementStart;
    }

    public void setAgreementStart(String agreementStart) {
        this.agreementStart = agreementStart;
    }

    public String getAgreementEnd() {
        return agreementEnd;
    }

    public void setAgreementEnd(String agreementEnd) {
        this.agreementEnd = agreementEnd;
    }

    public String getAgreementOriginal() {
        return agreementOriginal;
    }

    public void setAgreementOriginal(String agreementOriginal) {
        this.agreementOriginal = agreementOriginal;
    }

    public String getAgreementImg() {
        return agreementImg;
    }

    public void setAgreementImg(String agreementImg) {
        this.agreementImg = agreementImg;
    }

    public String getAgreementImgScale() {
        return agreementImgScale;
    }

    public void setAgreementImgScale(String agreementImgScale) {
        this.agreementImgScale = agreementImgScale;
    }

    public String getAgreementImgUrl() {
        return agreementImgUrl;
    }

    public void setAgreementImgUrl(String agreementImgUrl) {
        this.agreementImgUrl = agreementImgUrl;
    }

    public String getAgreementImgUrlScale() {
        return agreementImgUrlScale;
    }

    public void setAgreementImgUrlScale(String agreementImgUrlScale) {
        this.agreementImgUrlScale = agreementImgUrlScale;
    }

    public String getAgreementImgStart() {
        return agreementImgStart;
    }

    public void setAgreementImgStart(String agreementImgStart) {
        this.agreementImgStart = agreementImgStart;
    }

    public String getAgreementImgEnd() {
        return agreementImgEnd;
    }

    public void setAgreementImgEnd(String agreementImgEnd) {
        this.agreementImgEnd = agreementImgEnd;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.disposalAgreement);
        dest.writeString(this.disposalAgreementScale);
        dest.writeString(this.disposalAgreementOriginal);
        dest.writeString(this.agreementUrl);
        dest.writeString(this.agreementStart);
        dest.writeString(this.agreementEnd);
        dest.writeString(this.agreementOriginal);
        dest.writeString(this.agreementImg);
        dest.writeString(this.agreementImgScale);
        dest.writeString(this.agreementImgUrl);
        dest.writeString(this.agreementImgUrlScale);
        dest.writeString(this.agreementImgStart);
        dest.writeString(this.agreementImgEnd);
    }

    protected AgreementInfo(Parcel in) {
        this.disposalAgreement = in.readString();
        this.disposalAgreementScale = in.readString();
        this.disposalAgreementOriginal = in.readString();
        this.agreementUrl = in.readString();
        this.agreementStart = in.readString();
        this.agreementEnd = in.readString();
        this.agreementOriginal = in.readString();
        this.agreementImg = in.readString();
        this.agreementImgScale = in.readString();
        this.agreementImgUrl = in.readString();
        this.agreementImgUrlScale = in.readString();
        this.agreementImgStart = in.readString();
        this.agreementImgEnd = in.readString();
    }

    public static final Creator<AgreementInfo> CREATOR = new Creator<AgreementInfo>() {
        @Override
        public AgreementInfo createFromParcel(Parcel source) {
            return new AgreementInfo(source);
        }

        @Override
        public AgreementInfo[] newArray(int size) {
            return new AgreementInfo[size];
        }
    };
}
